/**
 * 
 */
package com.roshan.web.security.context;

import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContext;

import com.roshan.web.security.domain.RoarAuthenticationToken;

public class RoarSecurityContext implements SecurityContext {

    private static final long serialVersionUID = 100L;

    private RoarAuthenticationToken token;

    @Override
    public Authentication getAuthentication() {
        return this.token;
    }

    @Override
    public void setAuthentication(Authentication authentication) {
        this.token = (RoarAuthenticationToken) authentication;
    }

}
